<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>unit test vector &mdash; vecmat v1.0 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.0',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="top" title="vecmat v1.0 documentation" href="../index.html" />
    <link rel="prev" title="unit test matrix" href="matrix.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="matrix.html" title="unit test matrix"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">vecmat v1.0 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="unit-test-vector">
<h1>unit test vector<a class="headerlink" href="#unit-test-vector" title="Permalink to this headline">¶</a></h1>
<div class="section" id="module-test.unit.vectorUnitTest">
<h2>All available classes/functions<a class="headerlink" href="#module-test.unit.vectorUnitTest" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="test.unit.vectorUnitTest.VectorUnitTest">
<em class="property">class </em><tt class="descclassname">test.unit.vectorUnitTest.</tt><tt class="descname">VectorUnitTest</tt><big>(</big><em>methodName='runTest'</em><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest" title="Permalink to this definition">¶</a></dt>
<dd><p>vector module testing</p>
<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.setUp">
<tt class="descname">setUp</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.setUp" title="Permalink to this definition">¶</a></dt>
<dd>crete some basic vectors to test with</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_angleBetween">
<tt class="descname">test_angleBetween</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_angleBetween" title="Permalink to this definition">¶</a></dt>
<dd>calculate the angle between 2 vectors
the result angle is checked in degree</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_create">
<tt class="descname">test_create</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_create" title="Permalink to this definition">¶</a></dt>
<dd>create an empty vector</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_cross">
<tt class="descname">test_cross</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_cross" title="Permalink to this definition">¶</a></dt>
<dd>calculate the cross product of 2 vectors</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_directAssigment">
<tt class="descname">test_directAssigment</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_directAssigment" title="Permalink to this definition">¶</a></dt>
<dd>direct assigment for vector element</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_divFloat">
<tt class="descname">test_divFloat</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_divFloat" title="Permalink to this definition">¶</a></dt>
<dd>divide with float</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_divInt">
<tt class="descname">test_divInt</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_divInt" title="Permalink to this definition">¶</a></dt>
<dd>divide with int</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_dot">
<tt class="descname">test_dot</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_dot" title="Permalink to this definition">¶</a></dt>
<dd>calculate the dot product of 2 vectors</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq">
<tt class="descname">test_eq</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq" title="Permalink to this definition">¶</a></dt>
<dd>compare 2 vectors</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq_1">
<tt class="descname">test_eq_1</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq_1" title="Permalink to this definition">¶</a></dt>
<dd>compare vector and list4</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq_2">
<tt class="descname">test_eq_2</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq_2" title="Permalink to this definition">¶</a></dt>
<dd>compare vector and list3</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq_3">
<tt class="descname">test_eq_3</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq_3" title="Permalink to this definition">¶</a></dt>
<dd>compare vector and list4</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq_4">
<tt class="descname">test_eq_4</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq_4" title="Permalink to this definition">¶</a></dt>
<dd>compare vector and list3</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq_5">
<tt class="descname">test_eq_5</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq_5" title="Permalink to this definition">¶</a></dt>
<dd>compare vector and touple4</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_eq_6">
<tt class="descname">test_eq_6</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_eq_6" title="Permalink to this definition">¶</a></dt>
<dd>compare vector and touple3</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_mag">
<tt class="descname">test_mag</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_mag" title="Permalink to this definition">¶</a></dt>
<dd>calc the magnitude of a vector</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_mixMath_1">
<tt class="descname">test_mixMath_1</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_mixMath_1" title="Permalink to this definition">¶</a></dt>
<dd>V.normalize()*V.mag()</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_mulInt">
<tt class="descname">test_mulInt</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_mulInt" title="Permalink to this definition">¶</a></dt>
<dd>multiply vector and int</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_multFloat">
<tt class="descname">test_multFloat</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_multFloat" title="Permalink to this definition">¶</a></dt>
<dd>multiply vector and float</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_ne">
<tt class="descname">test_ne</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_ne" title="Permalink to this definition">¶</a></dt>
<dd>compare 2 different vectors</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_normalize">
<tt class="descname">test_normalize</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_normalize" title="Permalink to this definition">¶</a></dt>
<dd>normallize vector</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_sub">
<tt class="descname">test_sub</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_sub" title="Permalink to this definition">¶</a></dt>
<dd>subtract 2 vectors</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_sum">
<tt class="descname">test_sum</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_sum" title="Permalink to this definition">¶</a></dt>
<dd>sum 2 vectors</dd></dl>

<dl class="method">
<dt id="test.unit.vectorUnitTest.VectorUnitTest.test_wPos">
<tt class="descname">test_wPos</tt><big>(</big><big>)</big><a class="headerlink" href="#test.unit.vectorUnitTest.VectorUnitTest.test_wPos" title="Permalink to this definition">¶</a></dt>
<dd>calculate the weighted position based on two vector</dd></dl>

</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="../index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="#">unit test vector</a><ul>
<li><a class="reference external" href="#module-test.unit.vectorUnitTest">All available classes/functions</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="matrix.html"
                                  title="previous chapter">unit test matrix</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../_sources/unit-test/vector.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="matrix.html" title="unit test matrix"
             >previous</a> |</li>
        <li><a href="../index.html">vecmat v1.0 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2010, Lorenzo Angeli.
      Last updated on Jun 15, 2010.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.6.
    </div>
  </body>
</html>